<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    //...扩展运算符能将数组转为逗号分割的 参数序列
    const data = ['1','2','3'] // '1','2','3'

    function fn1() {
        console.log(arguments)//获取参数
    }
    fn1(...data) //相当于 fn1('1','2','3')

    //应用1
    const kuaizi = ['one','two']
    const fenghuang = ['曾毅','玲花']

    const  hebing = kuaizi.concat(fenghuang)

    const hebing1 = [...kuaizi,...fenghuang]//相当于展开之后形成一个数组


    //数组克隆2
    const sanzhihua =['e','g','m']
    const sanyecao = [...sanzhihua] // ['e','g','m']

    //将伪数组转为真正的数组3
    const divs = document.querySelectorAll('div')//对象
    const divArr = [...divs]//转为了数组



</script>
</body>
</html>